﻿using System;
using Microsoft.Practices.Prism.Logging;
using System.Diagnostics;

namespace Com.JJ1369.Infrastructure.Logger
{
    public sealed class DebugAdapter : ILoggerFacade
    {
        private static DebugAdapter _Instance;

        private DebugAdapter()
        {

        }
        /// <summary>
        /// The logger to be wrapped.
        /// </summary>
        /// <remarks>Initial this logger with the actual logger.</remarks>
        public void Log(string message, Category category, Priority priority)
        {
            Debug.WriteLine("Category:" + category.ToString() + " Message:" + message);
        }

        public static DebugAdapter Instance
        {
            get
            {
                if (_Instance == null)
                {
                    _Instance = new DebugAdapter();
                }
                return _Instance;
            }
        }

    }
}
